† Corresponding author. E-mail:
Project supported by the National Natural Science Foundation of China (Grant Nos. 11572201 and 91634202).
Particle tracking velocimetry (PTV) is one of the most commonly applied granular flow velocity measurement methods. However, traditional PTV methods may have issues such as high mismatching rates and a narrow measurement range when measuring granular flows with large bulk density and high-speed contrast. In this study, a novel PTV method is introduced to solve these problems using an optical flow matching algorithm with two further processing steps. The first step involves displacement correction, which is used to solve the mismatching problem in the case of high stacking density. The other step is trajectory splicing, which is used to solve the problem of a measurement range reduction in the case of high-speed contrast The hopper flow experimental results demonstrate superior performance of this proposed method in controlling the number of mismatched particles and better measuring efficiency in comparison with the traditional PTV method.
In the past few decades, many new optical non-contact measurement methods have emerged owing to developments in optical technology. Among them, spatial filtering velocimetry (SFV),[1,2] particle image velocimetry (PIV),[3–6] and particle tracking velocimetry (PTV)[7–10] are the three most commonly employed methods for granular flow fields. For a nearly uniform flow velocity distribution, results obtained by these three methods are highly similar. However, if granular flows are of high concentration, an inconvenient drawback is exposed, namely, PIV lags far behind PTV in terms of the ability to recognize particle displacement.[11] In the meantime, if the granular flow has a large velocity contrast, the SFV method may cause large measurement errors, since the measurement results are averaged. Arguably, PTV is the best method to measure complex granular flows.
The PTV technique mainly includes particle recognition and particle matching. Particle recognition is affected by hardware conditions, as the particle recognition accuracy is positively correlated with the camera imaging quality. After determining the hardware parameters, the particle-matching method will become a key factor affecting the accuracy of the PTV technique. Usually, the PTV matching algorithm needs to primarily set the matching rules of tracer particles to establish a particle-matching calculation model. The matching rules that appear in the traditional PTV method[12] include the following: particle motion displacement needs to be smaller than the distance between the particle and other particles, the motion of the tracer particles in a small space needs to be consistent, etc. When measuring complex granular flow scenes, such as hopper granular flows, the matching rules depicted above are not perfectly applicable, because the velocity field distribution of the hopper flow is not only numerically different, but directions of movement of the particles at different positions are also contrasting.[13] If these rules are enforced in the matching algorithm, it is likely to lead to a significant reduction in particle-matching accuracy. In 2011, Balevicius et al.[14] employed the discrete element method to study particle motion in different types of hoppers. In 2018, Ma et al.[15] used the same method to study particle clogging within hoppers. The latest research addressing hopper granular flow was conducted by Zhang et al.,[16] who studied the applicability of Beverloo’s scaling law within hoppers in 2019. Apparently, due to the lack of measurement methods, many scholars prefer simulation to experiment.
The optical flow method is a motion detection method in the field of computer vision. Compared with other methods in this field, such as the CamShift algorithm,[17] the optical flow algorithm exhibits better performance in tracking multiple moving targets. Optical flow methods are usually divided into sparse optical flow and dense optical flow. The representative method of dense optical flows is the Horn–Schunck (H–S) method,[18] whereas the representative methods of sparse optical flows are the Lucas–Kanade (L–K) method[19] and Pyramid Lucas–Kanade (PyrLK) method.[20] Sparse optical flow is employed for image registration specifically for sparse points on an image, which means that this method needs to track certain coordinates within an image. Due to the small amount of calculation and high precision,[21] it is often used for image registration and target tracking. Dense optical flow requires the calculation of the offset of all the points in the image to form a dense field.[22] The advantage of this method is that the target can be registered at the pixel level, whereas the disadvantage is that it requires significantly more calculation than the sparse optical flow. In the field of granular flow velocity measurement, we need to measure the motion of a single particle, such that the sparse optical flow method is more appropriate than the dense optical flow method. Considering the granular flow movement in some complex scenarios, the PyrLK method exhibits a better performance in tracking particles with large displacements compared with the L–K method.
The PyrLK method uses corner displacement to characterize particles. However, in complex scenarios such as hopper granular flow, the centroid displacement provides a more accurate representation of particle motion. In this study, a displacement correction method of corner-to-centroid is proposed for the improvement of the PyrLK method. Theoretically, the trajectory reliability of the particle between two frames has a positive correlation with the camera frame rate. Therefore, to measure the particle motion over a longer time scale, it is necessary to splice all trajectories at this scale.
Based on the claim above, choosing hopper granular flow as a typical complex scenario, this study introduces an improved PTV method compounding displacement correction and trajectory splicing for the measurement of complex granular flows, and builds an experimental device. The results show that the designed method effectively improves both precision and efficiency compared with the traditional PTV method.
The basic principle of the PTV technique is to track the motion trajectory of the same particle at different time points, calculate the motion displacement of the particle using the trajectory, and finally obtain the motion velocity of the particle by the displacement and time interval.[23,24] Determining the position of the particle between two frames is a critical process in the PTV method. The PyrLK method determines the pixel displacement in the image sequence by measuring the change of the pixel intensity data in the image sequence and the correlation between adjacent frames,[18] thereby performing tracking of the particle target. Applying the PyrLK method to the PTV matching algorithm indicates that there is no need to assume matching rules for moving targets, which is highly advantageous for the measurement of complex flow fields.
The PTV matching algorithm employing the PyrLK method includes three steps: extracting corner points, establishing constraint equations, and layering by the Gaussian pyramid. The specific implementation method will be described in detail later in this paper.
The PyrLK method selects corner points as the particle feature points. If a small change in a point on an image causes a large change in the gray-scale, this point will be considered as a corner coordinate. A common method for corner tracking is the Shi–Tomashi feature detection, and the tracking principle is as follows.
Assume (x, y) as the coordinates of a pixel in an image, I(x, y) is the intensity information of this pixel. After the displacement of (Δx, Δy), the gray-scale variation function, E(Δx, Δy), of pixel (x, y) can be expressed as follows:
After the Shi–Tomashi feature detection, the obtained corner coordinate is an integer value due to the limitations of the acquisition camera, despite the fact that the corner coordinate position is rarely at the integer position. To overcome this problem, we decide to pursue sub-pixel corner detection techniques,[25,26] plot and fit curves based on the image pixel values, and use mathematical operations to determine where the peak appears between the pixels. Figure
Suppose that the pixel coordinates (x, y) of the corner point have been determined, and the intensity information function in time t is I(x, y, t). After Δt time interval, the intensity information function is expressed as I(x + Δx, y + Δy, t + Δt) If the movement of this point is small and continuous[27] we can use the Taylor formula to expand I(x + Δx, y + Δy, t + Δt) as follows:
The least squares method is used to find optimal solutions of these n equations, and the motion components of u and w can be obtained. The detailed calculation steps are shown by the following equations:
The condition for the Taylor expansion in the second step is that the corner position does not change drastically. Once the moving target velocity increases, the displacement becomes larger, and the algorithm produces a larger error. To solve these drawbacks, this study proposes to use the PyrLK method, which is an improved L–K method based on the pyramid stratification proposed by Bouguet.[28] The principle behind the PyrLK method is explained in Fig.
In some scenarios, since velocities in the flow field are not completely the same, particles may also rotate during motion. In this case, centroid displacement is more representative of the actual motion than corner displacement, hence the corner coordinates need to be converted to centroid coordinates before the velocity calculation.
The specific displacement correction method used in this study is as follows. First, a reasonable threshold is determined by observing the segmented image until all tracer particles are highlighted. The image is then subjected to binarization processing, resulting in a processed image that contains the physical contour of the particles. After extracting contours of respective entities, a key step is to evaluate the affiliation between the corner point and contour of each particle. Finally, a geometric moment algorithm is used to obtain the centroid of the particle contour, and the centroid matching of the tracer particles is realized.
Evaluating the affiliation between the corner point and contour is key to the whole displacement correction process. The implementation of this step is explained in Fig.
In some scenarios with high motion velocities, increasing the sampling frequency can effectively improve the measurement accuracy. Shorter time intervals between two frames portray simpler motions of the particles, and provide higher reliability of the optical flow trajectory. If it is necessary to measure particle motion over a longer period of time, the displacement needs to be spliced between frames within the time period.
The trajectory splicing method is shown in Fig.
The section above provides a detailed description of a new PyrLK-based PTV method for complex granular flows. According to the analysis, the measurement accuracy of the method is mainly affected by the selection of the target adjacent region and the number of pyramid layers. The size of the target adjacent region determines how many constraint equations are needed to obtain the optimal solution. The number of equations affects the solution accuracy, which is obtained by the least squares method. The number of Gaussian pyramid layers will determine the measurement accuracy of particles with large displacements. A hopper granular flow device is set up and described in the following section to verify the proposed method.
Figure
First, the position of the light source irradiating the hopper is adjusted to ensure that particles receive uniform illumination and form a bright spot. The CCD camera exposure time is set to 5 ms, and images acquired with the camera are processed by a computer. According to the actual image collected by CCD, the number of identifiable particles is about 30000. From the perspective of the number set, 30000 particles can effectively evaluate the performance of the PyrLK-based PTV method for tracking large-scale particle scenarios.
After the particle image is correctly matched, the next step is to select the appropriate parameters. The granular flow velocity at the hopper opening represents the fastest part of the entire granular flow field. Hence, to obtain parameters suitable for the entire hopper particle velocity field, the granular flow at the hopper opening needs to be analyzed. The number of particles in this area is about 1000, and the time interval between two frames is 21 ms. Parameter selection and accuracy values are shown in Table
First, a comparison between the PTV algorithm based on the PyrLK method and the traditional PTV algorithm with matching rules is implemented. These two methods are applied to the hopper granular flow shown in Fig.
The matching error of the traditional PTV is mainly concentrated in the bulk area and outlet, where the velocities exhibit large contrast. According to the principle of PTV, the error of the traditional PTV is caused by corner matching results. To draw a more convincing conclusion, we employ the RANSAC method[29] to detect the mismatching rate of the boundary, bulk, and outlet regions measured by these two methods. The results are listed in Table
In summary of the above analysis, the PyrLK-based PTV method is undoubtedly a better choice for measuring large-scale and large-displacement complex particle motion scenarios. Therefore, the following part of this paper involves an experiment to measure and analyze a larger hopper granular flow. In this experiment, motion of the particles lasted for T = 681.673 s, and the initial number of particles in the hopper was ∼30000. Images at four time points were selected for measurement. Figure
Figure
Figure
Figure
In the field of particle motion measurement, because of the existence of numerous complex motion scenes, such as hopper granular flow, the traditional PTV method will lead to a large number of mismatching phenomena, and the measurement efficiency will be reduced accordingly. This study combined PTV technology with an optical flow matching method, improving it by the displacement correction method and trajectory splicing algorithm. The main conclusions of this study are as follows.
(1) Compared with traditional PTV, this improved PTV technology has more accurate matching results and exhibits higher efficiency in the particle measurement field. According to the measurement results of hopper granular flow, the matching error is kept within 1%, and the measurement efficiency is improved by one order of magnitude.
(2) The velocity field distribution of granular flow in a typical hopper is measured. Velocities of particles in the boundary region of the hopper are very low, and as the particles in the hopper become fewer, the velocity of particles at the center position increases. Furthermore, the distribution of particle velocities in this region gradually increases from top to bottom.
[1] | |
[2] | |
[3] | |
[4] | |
[5] | |
[6] | |
[7] | |
[8] | |
[9] | |
[10] | |
[11] | |
[12] | |
[13] | |
[14] | |
[15] | |
[16] | |
[17] | |
[18] | |
[19] | |
[20] | |
[21] | |
[22] | |
[23] | |
[24] | |
[25] | |
[26] | |
[27] | |
[28] | |
[29] |